#include<iostream>
#include<vector>
using namespace std;
vector<int> unionA(vector<int> &va,vector<int> &vb){
    vector<int> vc;
    for(int i=0;i<=va.size();i++){
        vc.push_back(va[i]);
        //cout<<vc[i]<<" ";
        if(va.size()==i+1){
            for(int j=va.size();j<va.size()+vb.size();j++){
                vc.push_back(vb[j-va.size()]);
             //   cout<<vc[j]<<" ";
            }
          for(int j=0;j<vc.size()-1;j++){
              
          }
            //return vc;
           for(int i=0;i<vc.size();i++){
              cout<<vc[i]<<" ";
           }
        }    
    }
    return vc;
}
int main(){
  vector<int> a,b,c;

}